package com.ruoyi.safe.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 督查督办对象 biz_overseer
 * 
 * @author lhm
 * @date 2024-01-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BizOverseerVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 隐患记录id */
    @Excel(name = "隐患记录id")
    private Long recordId;

    /** 发起时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发起时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date initTime;

    /** 督办操作 */
    @Excel(name = "督办操作")
    private String initOperation;

    /** 督办内容 */
    @Excel(name = "督办内容")
    private String initContent;

    /** 发起人 */
    @Excel(name = "发起人")
    private String initUser;

    private String initUserNickName;

    /** 处理状态:0待处理,1已处理 */
    private String status;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dealTime;

    /** 督办处理操作 */
    @Excel(name = "督办处理操作")
    private String dealOperation;

    /** 处理内容 */
    @Excel(name = "处理内容")
    private String dealContent;

    /** 执行人 */
    @Excel(name = "执行人")
    private String dealUser;

    private String dealUserNickName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("recordId", getRecordId())
            .append("initTime", getInitTime())
            .append("initOperation", getInitOperation())
            .append("initContent", getInitContent())
            .append("initUser", getInitUser())
            .append("dealTime", getDealTime())
            .append("dealOperation", getDealOperation())
            .append("dealContent", getDealContent())
            .append("dealUser", getDealUser())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
